cmake_minimum_required(VERSION 3.16)
project(qt_udp__learn)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")

set(CMAKE_CXX_STANDARD 14)

set(CMAKE_INCLUDE_CURRENT_DIR ON)

SET(CMAKE_AUTOMOC ON)
SET(CMAKE_AUTORCC ON)
SET(CMAKE_AUTOUIC ON)
find_package(Qt5
        COMPONENTS
        Concurrent
        Core
        Gui
        Network
        OpenGL
        LinguistTools
        SerialPort
        Sql
        Widgets
        Xml
        ${QT_TEST_COMPONENT}
        REQUIRED)

find_package(Qt5 COMPONENTS Script Svg QUIET)

add_executable(qt_udp__learn main.cpp)

include(FeatureSummary)
include(Variables)
include(Functions)

add_subdirectory(QtAnimation)
add_subdirectory(Core)

feature_summary(INCLUDE_QUIET_PACKAGES
        WHAT
        PACKAGES_FOUND
        PACKAGES_NOT_FOUND
        ENABLED_FEATURES
        DISABLED_FEATURES)